﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cliente.Master" AutoEventWireup="true" CodeBehind="Productos.aspx.cs" Inherits="ForrajeriaFRONT.Productos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <table class="style1">
        <tr>
            <td class="style2">
                <asp:Label ID="lblProducto" runat="server" Text="Producto:"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtProducto" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td class="style5">
                <asp:Label ID="lblMarca" runat="server" Text="Marca:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlMarca" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
            <td class="style4">
                <asp:Label ID="lblEdad" runat="server" Text="Edad:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlEdad" runat="server"  Width="150px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnBuscar" runat="server" Text="Buscar" Width="112px" 
                    onclick="btnBuscar_Click" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="7">
    <asp:GridView ID="gridDatos" runat="server"   
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%"
            EnableSortingAndPagingCallbacks="True" 
            
        onselectedindexchanged="gridDatos_SelectedIndexChanged" AutoGenerateColumns="False" 
                    EmptyDataText="No hay Productos Para Mostrar">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="nombreForraje" HeaderText="Producto"/>
            <asp:BoundField DataField="descripcion" HeaderText="Descripcion" />
            <asp:BoundField DataField="Nombre" HeaderText="Marca" />
            <asp:BoundField DataField="peso" HeaderText="Peso" />
            <asp:BoundField DataField="descripcionEdad" HeaderText="Edad" />
            <asp:BoundField DataField="stockActual" HeaderText="Stock Actual" />
           
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#EDEAE4" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
